package com.tensquare.notice.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author wz
 * @company 公司
 * @create 2020-02-17 10:31
 */
@FeignClient("tensquare-user")
public interface UserClient {
    //根据id查询用户
    //http://127.0.0.1:9008/user/1
    @GetMapping("user/{userId}")
    public Result selectById(@PathVariable("userId") String userId);
}
